package com.jiao.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {  //用于和前端妹子交互数据的类【json】
    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message){   //可能传递参数没有data参数
        this(code,message,null);
    }
}
